$OpenBSD: patch-Makefile_in,v 1.2 2007/04/08 15:19:31 sturm Exp $
--- Makefile.in.orig	Sun Jul  9 17:54:22 2006
+++ Makefile.in	Sat Apr  7 15:59:47 2007
@@ -11,6 +11,7 @@ mandir=${DESTDIR}@mandir@
 docdir=${DESTDIR}@docdir@
 
 APSSHARE=${datadir}/apsfilter
+REALAPSSHARE=@datadir@/apsfilter
 APSDOC=${docdir}/apsfilter
 APSCONF=${sysconfdir}/apsfilter
 
@@ -81,7 +82,7 @@ update:
 	${INSTALL_DATA}   man/apsfilter-bug.1	${mandir}/man1/apsfilter-bug.1
 	${INSTALL_DATA}   man/apsfilterrc.5	${mandir}/man5/apsfilterrc.5
 	tar cf - driver | ( cd ${APSSHARE} && tar xf -)
-	${LN} ${APSSHARE} ${APSCONF}/basedir
+	${LN} ${REALAPSSHARE} ${APSCONF}/basedir
 
 clean:
 	(cd doc; make clean)
